package o;

import android.widget.LinearLayout;
import com.huawei.appgallery.forum.posts.api.PostProfiles;

public class emw$b implements azv {
    private PostProfiles ˏ;

    public void ˎ(String str, final azs o_azs) {
        if (!dof.ॱ(str)) {
            try {
                long parseLong = Long.parseLong(str);
                if (0 != parseLong) {
                    ((bzj) fho.ˏ().ˋ("Posts").ॱ(bzj.class)).ˏ(parseLong).ˏ(new fjq<PostProfiles>(this) {
                        final /* synthetic */ emw$b ˋ;

                        public void onComplete(fjo<PostProfiles> o_fjo_com_huawei_appgallery_forum_posts_api_PostProfiles) {
                            if (o_fjo_com_huawei_appgallery_forum_posts_api_PostProfiles.ˊ()) {
                                this.ˋ.ˏ = (PostProfiles) o_fjo_com_huawei_appgallery_forum_posts_api_PostProfiles.ॱ();
                            }
                            o_azs.ˏ();
                        }
                    });
                    return;
                }
            } catch (Exception e) {
                Logger.ˋ("AppWebViewConfig", "parse postId error:" + str);
            }
        }
        o_azs.ˏ();
    }

    public boolean ˎ() {
        return this.ˏ != null;
    }

    public void ˋ(LinearLayout linearLayout) {
        bzh o_bzh = new bzh();
        o_bzh.ˎ(this.ˏ);
        ((bzj) fho.ˏ().ˋ("Posts").ॱ(bzj.class)).ॱ(linearLayout, o_bzh);
    }
}
